home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7292 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: hartwick.edu!atienzam
  2. From: atienzam@hartwick.edu (Michael A. Atienza)
  3. Newsgroups: comp.lang.c++
  4. Subject: Newbie question(s) on strings and assembly lang.
  5. Message-ID: <1996Feb21.235620.5532@hartwick.edu>
  6. Date: 21 Feb 96 23:56:20 -0500
  7. Organization: Hartwick College
  8.  
  9.  
  10.  
  11.     Hello, I need some help in reading in a file...
  12. Lets say that I have a data file that looks like this:
  13.  
  14. |----Col1----|----Col2----|----Col3----|----Col4----|
  15.           COPY       ZERO            OLDER
  16.           COPY        ONE        OLD
  17.           READ       LIMIT
  18. NEXT          LOAD       OLDER
  19.  
  20.  
  21. and so on....
  22.  
  23. Each column is 10 characters long...I want to read
  24. each row into 4 string variables of length 10 each...
  25. My problem is, that it doesn't read the 10 blank
  26. spaces; it actually skips it and dumps the second
  27. column value into the first string variable...it should
  28. read in the 10 blank spaces into the first string
  29. variable, and then read the second column in to the
  30. second string variable....how can i do this?????
  31.  
  32. I am actually trying to do a symbolic table that will
  33. translate assembly language into the table, so my result
  34. should somewhat look like this:
  35.  
  36. Symbol        Address
  37. NEXT         10
  38. and so forth....
  39.  
  40. Is there an easier way to do this????
  41.  
  42. Any response(good or bad) will be appreciated....
  43.  
  44.  
  45. Cheers
  46. Mike
  47. atienzam@hartwick.edu            
  48.  
  49.